package com.xzt.meeting.entity;


import java.util.Date;

public class Article {

  private Long id;
  private String title;
  private String content;
  private Long browseCount;
  private Date publishDate;
  private String publishRealName;
  private Long userId;

  // 发布人
  private User user = new User();

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }

  public String getContent() {
    return content;
  }

  public void setContent(String content) {
    this.content = content;
  }

  public Long getBrowseCount() {
    return browseCount;
  }

  public void setBrowseCount(Long browseCount) {
    this.browseCount = browseCount;
  }

  public Date getPublishDate() {
    return publishDate;
  }

  public void setPublishDate(Date publishDate) {
    this.publishDate = publishDate;
  }

  public String getPublishRealName() {
    return publishRealName;
  }

  public void setPublishRealName(String publishRealName) {
    this.publishRealName = publishRealName;
  }

  public Long getUserId() {
    return userId;
  }

  public void setUserId(Long userId) {
    this.userId = userId;
  }

  public User getUser() {
    return user;
  }

  public void setUser(User user) {
    this.user = user;
  }

  @Override
  public String toString() {
    return "Article{" +
            "id=" + id +
            ", title='" + title + '\'' +
            ", content='" + content + '\'' +
            ", browseCount=" + browseCount +
            ", publishDate=" + publishDate +
            ", publishRealName='" + publishRealName + '\'' +
            ", userId=" + userId +
            ", user=" + user +
            '}';
  }
}
